<script setup>
import { reactive } from 'vue'
// import { getChatFn } from '@/api/mesapi'
const state = reactive({
    chatList: []
})

</script>

<template>
    <div class="mes-box">
        <header>
            <p @click="$router.back()">&lt;</p>
            <span>Eason不吭</span>
            <van-icon name="ellipsis" />
        </header>

        <div class="mes-list">
            <div class="mes-item">
                <p class="mes-you">
                    <van-icon name="https://cdn7.axureshop.com/demo2024/1966126/images/%E9%A6%96%E9%A1%B5_/u217.svg"
                        size="36" />

                    <span>
                        您好，大佬，在吗，在吗？
                    </span>
                </p>
                <p class="mes-me">
                    <span>
                        我在的亲，请问有什么需要帮助的吗？
                    </span>
                    <van-icon
                        name="https://cdn7.axureshop.com/demo2024/1966126/images/%E6%99%AE%E9%80%9A%E7%A7%81%E4%BF%A1%E8%AF%A6%E6%83%85/u5259.svg"
                        size="36" style="margin-right: 0.3rem;" />
                </p>
                <p class="mes-you">
                    <van-icon name="https://cdn7.axureshop.com/demo2024/1966126/images/%E9%A6%96%E9%A1%B5_/u217.svg"
                        size="36" />

                    <span>
                        大佬是从事互联网产品经理的么，想请教一些问题可以么？
                    </span>
                </p>
            </div>
        </div>
        <div class="mes-inp">
            <p>
                是的
            </p>
            <van-icon name="smile-o" size="24" />

            <van-icon name="photo-o" size="24" />
        </div>
        <van-image class="mes-img"
            src="https://cdn7.axureshop.com/demo2024/1966126/images/%E5%8F%91%E8%A1%A8%E8%AF%84%E8%AE%BA/%E9%94%AE%E7%9B%98_u3013.png" />
    </div>
</template>
<style lang="scss" scoped>
.mes-inp {
    position: absolute;
    width: 100%;
    bottom: 3rem;
    left: 0;
    height: 0.4rem;
    line-height: 0.4rem;
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: space-between;
    // padding: 0 0.2rem;

    p {
        height: 0.28rem;
        line-height: 0.28rem;
        background-color: #f7f7f7;
        padding: 0 0.1rem;
        flex: 1;
        font-size: 0.14rem;
        border-radius: 10px;
        box-sizing: border-box;
        margin: 0 0.2rem;
    }

    i {
        width: 0.3rem;
    }
}

.mes-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3rem;
}

.mes-list {
    height: 3.5rem;
    // margin-top: 0.3rem;
    font-size: 0.14rem;
    background-color: rgb(247, 247, 247);

    .mes-item {
        // width: 100%;
        padding-top: 0.2rem;

        p {
            // width: 100%;
            display: flex;

            span {
                width: 2.0rem;
                padding: 0.05rem;
                margin: 0 0.2rem;

            }
        }


        .mes-you {
            margin: 0.2rem;

            justify-content: flex-start;

            span {
                background-color: white;
                border-radius: 10px;

            }
        }

        .mes-me {
            justify-content: flex-end;
            // margin-right: 0.2rem;

            span {
                background-color: #e3f0ff;
                border-radius: 10px;
            }

        }
    }


}

.mes-box {
    font-size: 0.12rem;
    margin: 0.2rem 0;

}

header {
    user-select: none;
    font-size: 0.20rem;
    margin: 0.2rem 0;
    display: flex;
    justify-content: space-around;

    span {
        width: 2rem;
        text-align: center;
    }
}

.mes-nav {
    display: flex;
    justify-content: space-around;
    text-align: center;
    line-height: 0.4rem;

    li {
        display: flex;
        flex-direction: column;
    }
}
</style>